<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>



<div class="square-wrap clearfix">
	<div class="w990">
				<!-- 轮播 -->
<style>
.none{display:none}
.slide {
	padding-top:10px;
}
#J_Slide {
	position: relative;
	width: 990px;
	height: 90px;
	overflow: hidden;
}
#J_Slide .ks-switchable-nav {
    bottom: 5px;
    height: 18px;
    padding-top: 2px;
    position: absolute;
    right: 5px;
    z-index: 10;
}
#J_Slide .ks-switchable-nav li {
    background-color:#fff;
	opacity:.7;
	color:#d25036;
	height:20px;
	line-height:20px;
	margin-top:-2px;
	width:20px;
	float:left;
	text-align:center;
	font-size:13px;
	margin-left:3px;
	-moz-border-radius:20px;
	-webkit-border-radius:20px;
	border-radius:20px;
	position:relative;
	cursor:pointer;
	overflow:visible;
}
#J_Slide .ks-switchable-nav li.ks-active {
    background-color: #d25036;
    font-weight:bold;
	filter:none;
	opacity:1;
	color:#FFF;
}
#J_Slide .ks-switchable-content {
	margin: 0;
	padding: 0;
}
#J_Slide .ks-switchable-content li {
	height: 90px;
	width: 990px;
	overflow: hidden;
	margin: 0;
}
#J_Slide .ks-switchable-nav li,
#J_Slide .ks-switchable-trigger-content {
	position: relative;
}
#J_Slide .ks-switchable-trigger-mask {
	position: absolute;
	right: 0;
	width: 18px;
	height: 18px;
	background-color: #FF9415;
	visibility: hidden;
}
#J_Slide .ks-active .ks-switchable-trigger-mask {
	visibility: visible;
}
.list li {
	margin-left: 10px;
	margin-top: 5px;
	margin-bottom: 5px;
	list-style-type: circle;
}
</style>

{AdList 'index_top'}
<div class="slide">
	<div class="loading" id="J_Slide">
		<ol class="ks-switchable-content">
		{AdItem}
		{$lv['code']}
		{/AdItem}
		</ol>
		<ul class="ks-switchable-nav">
		{AdItem}
		<li{if $k==0} class="ks-active"{/if}>{$k+1}</li>
		{/AdItem}
		</ul>
	</div>
</div>
{/AdList}
{ModuleList 0}
{ModuleItem}
<div class="modules result-box-friends mt10">
<div class="title">{$lv['title']}</div>
<?php for($ii=0;$ii<4;$ii++){?>
<div class="result-col{if $ii==3} adjust{/if}">
{loop $lv['data']['value'] $key $item}
{if $key%4==$ii}
<div class="result-item">
	<div class="result-item-wrap" >
		<div class="result-item-bd">
			<div class="pic-brief">
					<div class="wow-pic-bd">
						<p class="price-view"><strong><s></s>{$item['price']}</strong></p>
						<a target="_blank" href="{url('Share','View',array('id'=>$item['id']))}"><img width="210" alt="" src="{$item['pic']}_b.jpg"></a>
				</div>
				<div class="wow-info-view clearfix">
					<div class="vote-area">
							<div class="wow-dig">
									<a href="javascript:void(0);" data-shareid="{$item['id']}" class="vote-trigger SHARE_FAV_A">喜欢</a>
									<span class="J_Counter" id="SHARE_FAV_COUNT_{$item['id']}">{$item['collect_num']}</span>
							    </div>
					</div>
						<p class="fxer-count">
							<a target="_blank" href="{url('Share','View',array('id'=>$item['id']))}">{$item['share_num']}人购后分享</a>
						</p>
				</div>
			</div>
				<div  class="fx-brief">
				
						<div class="fxer-archive">
						<a class="fxer-avatar" target="_blank" href="{if $item['user_id']>0}{url('User','Index',array('uid'=>$item['user_id']))}{else}javascript:void(0){/if}"><img width="30" height="30" alt="" src="{$item['logo']}"></a>
						<dl>
							<dt><a target="_blank" href="{url('User','Index',array('uid'=>$item['user_id']))}">{$item['username']}</a></dt>
							<dd>{$item['created']}&nbsp;&nbsp;分享</dd>
						</dl>
						</div>
						<div class="fx-cnt-bd clearfix">
						<p class="fx-txts"><a target="_blank" href="{url('Share','View',array('id'=>$item['id']))}"> {CnTruncate $item['content'],45,'...'} </a></p>
						</div>
				</div>
		</div>
	</div>
</div>
{/if}
{/loop}
</div>
<?php }?>
</div>
{/ModuleItem}
{/ModuleList}
<div id="tests"></div>
<script>
//jQuery.extend(jQuery.easing, {
//    easeInOutBack: function(e, f, a, i, h, g) {
//        if (g == undefined) {
//            g = 1.70158
//        }
//        if ((f /= h / 2) < 1) {
//            return i / 2 * (f * f * (((g *= (1.525)) + 1) * f - g)) + a
//        }
//        return i / 2 * ((f -= 2) * f * (((g *= (1.525)) + 1) * f + g) + 2) + a
//    }
//});
$(function(){
	doSlide('J_Slide');
	
	
	
//	$(".item-load").lazyload({ 
//		effect : "fadeIn" 
//	}); 
//	var w = $(window);
//	k = true;var ia = 3;
//	w.scroll(function() {
//		if (k == false)return;
//        var d = w.scrollTop(),
//        c = $("#footer").offset().top,
//        a = w.height(),
//        b = c - d - a;
////        if (k != false && b >= 0 && ia<10) {
////        	k = false;
////			$('#I_0_'+ia+',#I_1_'+ia+',#I_2_'+ia+',#I_3_'+ia).fadeIn(2000,function(){
////				k = true;
////			});
//			$('#tests').html(b);
////			ia++;
////        }
//    });
	
});
</script>